package cn.stylefeng.guns.modular.manager.entity;

import java.math.BigDecimal;

import cn.stylefeng.guns.modular.manager.model.result.FlowOrderGoodsResult;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 订单记录
 * </p>
 *
 * @author yumker
 * @since 2021-01-14
 */
@TableName("flow_order")
public class FlowOrder implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "order_id", type = IdType.AUTO)
    private Long orderId;

    @TableField("order_code")
    private String orderCode;

    @TableField("pay_code")
    private String payCode;

    @TableField("order_type")
    private Long orderType;

    @TableField("name")
    private String name;

    @TableField("phone")
    private String phone;

    @TableField("service_city")
    private String serviceCity;

    @TableField("storage_time")
    private String storageTime;

    @TableField("beg_address")
    private String begAddress;

    @TableField("end_address")
    private String endAddress;

    @TableField("order_date")
    private Date orderDate;

    @TableField("moneys")
    private BigDecimal moneys;

    @TableField("pay_moneys")
    private BigDecimal payMoneys;

    @TableField("bd_member_id")
    private Long bdMemberId;

    @TableField("zfb_member_id")
    private Long zfbMemberId;

    @TableField("settlement_moneys")
    private BigDecimal settlementMoneys;

    @TableField("pay_status")
    private Integer payStatus;

    @TableField("beg_location")
    private String begLocation;

    @TableField("end_location")
    private String endLocation;

    @TableField("kilometer")
    private BigDecimal kilometer;

    @TableField("is_refund")
    private Integer isRefund;

    @TableField("refund_code")
    private String refundCode;

    @TableField("order_status")
    private Integer orderStatus;

    @TableField("all_pay_moneys")
    private BigDecimal allPayMoneys;

    @TableField("notes")
    private String notes;

    @TableField("end_notes")
    private String endNotes;

    @TableField("order_from")
    private String orderFrom;

      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

      @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @TableField("use_date")
    private String useDate;

    @TableField("service_type")
    private Long serviceType;

    @TableField("wx_member_id")
    private Long wxMemberId;


    @TableField(exist = false)
    private String serviceName;
    @TableField(exist = false)
    private FlowOrderDis flowOrderDis;
    @TableField(exist = false)
    private List<FlowOrderGoodsResult> flowOrderGoods;
    @TableField(exist = false)
    private String orderTypeName;
    @TableField(exist = false)
    private String orderStatusStr;
    @TableField(exist = false)
    private String begElevator;
    @TableField(exist = false)
    private String endElevator;
    @TableField(exist = false)
    private String begDetail;
    @TableField(exist = false)
    private String endDetail;


    public String getBegDetail() {
        return begDetail;
    }

    public void setBegDetail(String begDetail) {
        this.begDetail = begDetail;
    }

    public String getEndDetail() {
        return endDetail;
    }

    public void setEndDetail(String endDetail) {
        this.endDetail = endDetail;
    }

    @TableField("kilometer_note")
    private String kilometerNote;

    @TableField("beg_elevator_price")
    private BigDecimal begElevatorPrice;

    @TableField("end_elevator_price")
    private BigDecimal endElevatorPrice;

    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    @TableField("store_id")
    private Long storeId;

    @TableField("store_name")
    private String storeName;

    @TableField("add_moneys")
    private BigDecimal addMoneys;

    @TableField("deposit")
    private BigDecimal deposit;

    @TableField("deposit_pay_code")
    private String depositPayCode;

    @TableField("deposit_pay")
    private Long depositPay;

    @TableField("refund_status")//1.申请中 2.确定 3.拒绝
    public Integer refundStatus;

    @TableField("super_user_id") //上级分销用户
    private Long superUserId;
    @TableField("one_draw_price") //上级分销用户
    private BigDecimal oneDrawPrice;//每笔订单提成佣金



    @TableField("dy_member_id")
    private Long dyMemberId;


    public BigDecimal getOneDrawPrice() {
        return oneDrawPrice;
    }

    public void setOneDrawPrice(BigDecimal oneDrawPrice) {
        this.oneDrawPrice = oneDrawPrice;
    }

    public Long isDepositPay() {
        return depositPay;
    }

    public void setDepositPay(Long depositPay) {
        this.depositPay = depositPay;
    }

    public Long getSuperUserId() {
        return superUserId;
    }

    public void setSuperUserId(Long superUserId) {
        this.superUserId = superUserId;
    }

    public Integer getRefundStatus() {
        return refundStatus;
    }

    public void setRefundStatus(Integer refundStatus) {
        this.refundStatus = refundStatus;
    }

    public BigDecimal getDeposit() {
        return deposit;
    }

    public void setDeposit(BigDecimal deposit) {
        this.deposit = deposit;
    }

    public String getDepositPayCode() {
        return depositPayCode;
    }

    public void setDepositPayCode(String depositPayCode) {
        this.depositPayCode = depositPayCode;
    }






    public String getBegElevator() {
        return begElevator;
    }

    public void setBegElevator(String begElevator) {
        this.begElevator = begElevator;
    }

    public String getEndElevator() {
        return endElevator;
    }

    public void setEndElevator(String endElevator) {
        this.endElevator = endElevator;
    }

    public String getOrderStatusStr() {
        return orderStatusStr;
    }

    public void setOrderStatusStr(String orderStatusStr) {
        this.orderStatusStr = orderStatusStr;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public FlowOrderDis getFlowOrderDis() {
        return flowOrderDis;
    }

    public void setFlowOrderDis(FlowOrderDis flowOrderDis) {
        this.flowOrderDis = flowOrderDis;
    }

    public List<FlowOrderGoodsResult> getFlowOrderGoods() {
        return flowOrderGoods;
    }

    public void setFlowOrderGoods(List<FlowOrderGoodsResult> flowOrderGoods) {
        this.flowOrderGoods = flowOrderGoods;
    }

    public String getOrderTypeName() {
        return orderTypeName;
    }

    public void setOrderTypeName(String orderTypeName) {
        this.orderTypeName = orderTypeName;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getPayCode() {
        return payCode;
    }

    public void setPayCode(String payCode) {
        this.payCode = payCode;
    }

    public Long getOrderType() {
        return orderType;
    }

    public void setOrderType(Long orderType) {
        this.orderType = orderType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getServiceCity() {
        return serviceCity;
    }

    public void setServiceCity(String serviceCity) {
        this.serviceCity = serviceCity;
    }

    public String getStorageTime() {
        return storageTime;
    }

    public void setStorageTime(String storageTime) {
        this.storageTime = storageTime;
    }

    public String getBegAddress() {
        return begAddress;
    }

    public void setBegAddress(String begAddress) {
        this.begAddress = begAddress;
    }

    public String getEndAddress() {
        return endAddress;
    }

    public void setEndAddress(String endAddress) {
        this.endAddress = endAddress;
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public BigDecimal getMoneys() {
        return moneys;
    }

    public void setMoneys(BigDecimal moneys) {
        this.moneys = moneys;
    }

    public BigDecimal getPayMoneys() {
        return payMoneys;
    }

    public void setPayMoneys(BigDecimal payMoneys) {
        this.payMoneys = payMoneys;
    }

    public BigDecimal getAddMoneys() {
        return addMoneys;
    }

    public void setAddMoneys(BigDecimal addMoneys) {
        this.addMoneys = addMoneys;
    }
    public Long getBdMemberId() {
        return bdMemberId;
    }

    public void setBdMemberId(Long bdMemberId) {
        this.bdMemberId = bdMemberId;
    }

    public Long getZfbMemberId() {
        return zfbMemberId;
    }

    public void setZfbMemberId(Long zfbMemberId) {
        this.zfbMemberId = zfbMemberId;
    }

    public BigDecimal getSettlementMoneys() {
        return settlementMoneys;
    }

    public void setSettlementMoneys(BigDecimal settlementMoneys) {
        this.settlementMoneys = settlementMoneys;
    }

    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    public String getBegLocation() {
        return begLocation;
    }

    public void setBegLocation(String begLocation) {
        this.begLocation = begLocation;
    }

    public String getEndLocation() {
        return endLocation;
    }

    public void setEndLocation(String endLocation) {
        this.endLocation = endLocation;
    }

    public BigDecimal getKilometer() {
        return kilometer;
    }

    public void setKilometer(BigDecimal kilometer) {
        this.kilometer = kilometer;
    }

    public Integer getIsRefund() {
        return isRefund;
    }

    public void setIsRefund(Integer isRefund) {
        this.isRefund = isRefund;
    }

    public String getRefundCode() {
        return refundCode;
    }

    public void setRefundCode(String refundCode) {
        this.refundCode = refundCode;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public BigDecimal getAllPayMoneys() {
        return allPayMoneys;
    }

    public void setAllPayMoneys(BigDecimal allPayMoneys) {
        this.allPayMoneys = allPayMoneys;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public String getEndNotes() {
        return endNotes;
    }

    public void setEndNotes(String endNotes) {
        this.endNotes = endNotes;
    }

    public String getOrderFrom() {
        return orderFrom;
    }

    public void setOrderFrom(String orderFrom) {
        this.orderFrom = orderFrom;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUseDate() {
        return useDate;
    }

    public void setUseDate(String useDate) {
        this.useDate = useDate;
    }

    public Long getServiceType() {
        return serviceType;
    }

    public void setServiceType(Long serviceType) {
        this.serviceType = serviceType;
    }

    public String getKilometerNote() {
        return kilometerNote;
    }

    public void setKilometerNote(String kilometerNote) {
        this.kilometerNote = kilometerNote;
    }

    public BigDecimal getBegElevatorPrice() {
        return begElevatorPrice;
    }

    public void setBegElevatorPrice(BigDecimal begElevatorPrice) {
        this.begElevatorPrice = begElevatorPrice;
    }

    public BigDecimal getEndElevatorPrice() {
        return endElevatorPrice;
    }

    public void setEndElevatorPrice(BigDecimal endElevatorPrice) {
        this.endElevatorPrice = endElevatorPrice;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public Long getWxMemberId() {
        return wxMemberId;
    }

    public void setWxMemberId(Long wxMemberId) {
        this.wxMemberId = wxMemberId;
    }

    public Long getDyMemberId() {
        return dyMemberId;
    }

    public void setDyMemberId(Long dyMemberId) {
        this.dyMemberId = dyMemberId;
    }

    @Override
    public String toString() {
        return "FlowOrder{" +
                "orderId=" + orderId +
                ", orderCode='" + orderCode + '\'' +
                ", payCode='" + payCode + '\'' +
                ", orderType=" + orderType +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", serviceCity='" + serviceCity + '\'' +
                ", storageTime='" + storageTime + '\'' +
                ", begAddress='" + begAddress + '\'' +
                ", endAddress='" + endAddress + '\'' +
                ", orderDate=" + orderDate +
                ", moneys=" + moneys +
                ", payMoneys=" + payMoneys +
                ", bdMemberId=" + bdMemberId +
                ", zfbMemberId=" + zfbMemberId +
                ", settlementMoneys=" + settlementMoneys +
                ", payStatus=" + payStatus +
                ", begLocation='" + begLocation + '\'' +
                ", endLocation='" + endLocation + '\'' +
                ", kilometer=" + kilometer +
                ", isRefund=" + isRefund +
                ", refundCode='" + refundCode + '\'' +
                ", orderStatus=" + orderStatus +
                ", allPayMoneys=" + allPayMoneys +
                ", notes='" + notes + '\'' +
                ", endNotes='" + endNotes + '\'' +
                ", orderFrom='" + orderFrom + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", useDate='" + useDate + '\'' +
                ", serviceType=" + serviceType +
                ", wxMemberId=" + wxMemberId +
                ", serviceName='" + serviceName + '\'' +
                ", flowOrderDis=" + flowOrderDis +
                ", flowOrderGoods=" + flowOrderGoods +
                ", orderTypeName='" + orderTypeName + '\'' +
                ", orderStatusStr='" + orderStatusStr + '\'' +
                ", begElevator='" + begElevator + '\'' +
                ", endElevator='" + endElevator + '\'' +
                ", begDetail='" + begDetail + '\'' +
                ", endDetail='" + endDetail + '\'' +
                ", kilometerNote='" + kilometerNote + '\'' +
                ", begElevatorPrice=" + begElevatorPrice +
                ", endElevatorPrice=" + endElevatorPrice +
                ", updateUser=" + updateUser +
                ", storeId=" + storeId +
                ", storeName='" + storeName + '\'' +
                ", addMoneys=" + addMoneys +
                ", deposit=" + deposit +
                ", depositPayCode='" + depositPayCode + '\'' +
                ", depositPay=" + depositPay +
                ", refundStatus=" + refundStatus +
                ", superUserId=" + superUserId +
                ", oneDrawPrice=" + oneDrawPrice +
                ", dyMemberId=" + dyMemberId +
                '}';
    }
}
